package com.zhongwang.mms.module.jiaGongMaterial.dao;

import com.zhongwang.mms.gen.entity.*;
import com.zhongwang.mms.module.jiaGongMaterial.model.*;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface MaterialInDao {

    List<MMaterials> findMaterialsByQuery(JMaterialsModel jMaterialsModel);

    int insert(JMaterial jMaterial);

    int insertJMaterialInventory(JMaterialInventory jMaterialInventory);

    int insertJMaterialDetail(JMaterialDetail jMaterialDetail);

    List<JMaterialAllModel> findComplexStorage(JMaterialAllModel jMaterialAllModel);

    JMaterialInventory selectByPrimaryKey(Integer ityId);

    int updateByPrimaryKey(JMaterialInventory jMaterialInventory);

    JMaterial selectMaterialById(Integer odrId);

    List<JMaterialDetail> findOrderDetailByPrimaryKey(Integer odrId);

    List<JMaterial> selectByExample(MOrderExample ex);

    JMaterialDetail findMaterialDetailById(Integer odaId);
}